//
//  AppConfigManager.m
//  ChatMainDemo
//
//  Created by peiw on 16/1/21.
//  Copyright © 2016年 peiw. All rights reserved.
//

#import "AppConfigManager.h"

#import "IMChatInteractor.h"
#import "IMChatPresenter.h"
#import "IMChatWireframe.h"
#import "IMChatMessageManager.h"
#import "IMChatMainViewController.h"

@implementation AppConfigManager

+ (void)setupVIPERFor:(IMChatMainViewController *)vc {
    IMChatWireframe *wireFrame = [IMChatWireframe new];
    IMChatMessageManager *manager = [IMChatMessageManager new];
    IMChatInteractor *interactor = [[IMChatInteractor alloc] initWithDataManager:manager];
    IMChatPresenter *presenter = [IMChatPresenter new];
    presenter.interactor = interactor;
    interactor.output = presenter;
    presenter.interface = vc;
    vc.eventHandle = presenter;
    presenter.wireframe = wireFrame;
}

@end
